import PropTypes from 'prop-types'

import { connect } from 'react-redux';

import {testAction,showTabBar} from '../../Redux/actions/AppActions.js'

import AppFind from './AppFind.js'


//用来获取更新后的数据   监听数据更新
const mapStateToProps = (state,ownProps) => ({
  testShow: state.testShow,
})


//用来派发消息
const mapDispatchToProps = (dispatch,ownProps) => ({
  changeTabBar: (...args) => dispatch(showTabBar(...args)),
});

//用来进行数据流  和  控件的绑定关系
export default connect(mapStateToProps,mapDispatchToProps)(AppFind)
